package com.hwadee.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hwadee.backend.entity.Authorize;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AuthorizeMapper extends BaseMapper<Authorize> {
    @Select("SELECT * FROM authorize WHERE applicant = #{applicant} AND response = #{response} LIMIT 1")
    Authorize selectByApplicantAndResponse(@Param("applicant") int applicant, @Param("response") int response);
}